{% import 'macros/form.twig' as form %}
{% import 'macros/table.twig' as table %}
{% import 'macros/misc.twig' as misc %}

<form action="{{ action }}" method="post">

    {% for item in hidden | keys %}
        {{ form.HiddenFor(item, hidden[item]) }}
    {% endfor %}

    {{ misc.Section(constant('Strings::LABEL_0064'), 'td_data_bold user') }}
    <table width="100%" cellpadding="0" cellspacing="3">
        {{ form.Fields(user, 'user') }}
    </table>

    {{ misc.Section(constant('Strings::LABEL_0004'), 'td_data_bold user') }}  
    <table width="100%" cellpadding="0" cellspacing="3">
        <tr>
            {{ form.Fields(credentials, 'user', true) }}
        </tr>
    </table>

    {% embed 'shared/misc.twig' %}
        {% block tip_content %}
            <span>{{ constant('Strings::MESSAGE_9002') }}:</span>
            <small>
                <div>&nbsp;-&nbsp;{{ constant('Strings::MESSAGE_0018') }}</div>
                <div>&nbsp;-&nbsp;{{ constant('Strings::MESSAGE_0017') }}</div>
            </small>
        {% endblock %}
    {% endembed %}

    {{ misc.Section(constant('Strings::LABEL_0049'), 'td_data_bold user') }}  
    <table width="100%" cellpadding="0" cellspacing="3">
        {{ form.Fields(manager, 'user') }}
    </table>

    <div style="margin-top:8px;padding:8px;border-top:1px solid #CCCCCC;">
        <button type="submit" onclick="/*load_img();*/">{{ constant('Strings::LABEL_0025') }}</button>
    </div>
</form>